package com.yegs.jltqc.U8Controller;

import com.yegs.jltqc.TO.NamePageQuery;
import com.yegs.jltqc.TO.QcProducePageQuery;
import com.yegs.jltqc.U8Service.U8QcProduceService;
import com.yegs.jltqc.U8Service.U8VendorService;
import com.yegs.jltqc.config.Msg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/u8Vendor")
public class U8VendorController {
    @Autowired
    private U8VendorService u8VendorService;

    @PostMapping("/query")
    public Msg query(@RequestBody NamePageQuery query){
        return Msg.success("page",u8VendorService.query(query));
    }


}
